/**
 * @filename:${entityName}.java
 * Copyright(c) 2020 ${author}
 * All right reserved.
 */

package ${dtoUrl};

import java.io.Serializable;
import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 *
 * @Description:  ${entityComment} - 表示层对象
 * @Author:       ${author}
 * @CreateDate:   ${createTime}
 * @Version:      ${version}
 *
 */

/* 该类所有变量为脚本生成，使用时请删除多余字段 */

@Data
@NoArgsConstructor
public class ${entityName}DTO implements Serializable {

	private static final long serialVersionUID = 1L;

<#list cis as ci>
	<#if ci.javaType=="Date">
	<#if ci.jdbcType=="date">
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    <#elseif ci.jdbcType=="time">
    @DateTimeFormat(pattern = "HH:mm:ss")
	@JsonFormat(pattern="HH:mm:ss",timezone = "GMT+8")
	<#else>
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
	</#if>
	</#if>
	@ApiModelProperty(name = "${ci.property}" , value = "${ci.comment}")
	private ${ci.javaType} ${ci.property};

</#list>

}
